package com.haidechizi.doublecache.configuration;

import com.haidechizi.doublecache.service.DefaultLocalCacheService;
import com.haidechizi.doublecache.service.DefaultRemoteCacheService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 */
@Configuration
public class CacheServiceConfiguration {


    @Bean
    public DefaultLocalCacheService defaultLocalCacheService() {
        return new DefaultLocalCacheService();
    }


    @Bean
    public DefaultRemoteCacheService defaultRemoteCacheService() {
        return new DefaultRemoteCacheService();
    }
}
